import turtle as t
import random as r

t.bgpic('ye.png')
#画笔设置
#t.bgcolor('black')
t.hideturtle()
t.pencolor('yellow')
t.fillcolor('yellow')
t.speed(0)
for n in range(100):
    x = r.randint(-450,450)
    y = r.randint(0,400)
    t.penup()
    t.goto(x,y)
    t.pendown()
    #t.begin_fill()
    # l = r.randint(0,180)
    # t.left(l)
    f = r.randint(3,8)
    for i in range(5):
        t.forward(f)
        t.right(144)
    #t.end_fill()
    # t.left(-l)

t.done()
